﻿using Bot.Domain.Entities;
using Comm100.Framework.Domain.Specifications;
using System;
using System.Collections.Generic;
using System.Text;

namespace Bot.Domain.Specifications
{
    public class IntentFilterSpecification : BaseSpecification<Intent>
    {
        public IntentFilterSpecification(Guid categoryId)
            : base(i => i.CategoryId == categoryId)
        {

        }
        public IntentFilterSpecification(List<Guid> categoryIds)
            : base(i => categoryIds.Contains(i.CategoryId))
        {

        }
        public IntentFilterSpecification(List<Guid> categoryIds, string name)
           : base(i =>i.Name == name && categoryIds.Contains(i.CategoryId))
        {

        }
    }
}
